package com.kc.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * TODO
 *
 * @author zhangshuo
 * @version 1.0
 * @date 2020/9/24
 */
@Data
@Table(name = "biz_scenic_cultural")
public class BizScenicCultural implements Serializable {
    @Id
    private Integer culturalId;

    @NotBlank(message = "主题不能为空")
    private String theme;

    @NotBlank(message = "主题图片不能为空")
    private String themeImg;

    @Min(value = 1, message = "佣金最少1元")
    private Double commission;

    @NotBlank(message = "艺创主题不能为空")
    private String artTheme;

    @NotBlank(message = "艺创主题图片不能为空")
    private String artThemeImg;

    @Min(value = 1, message = "佣金最少1元")
    private Double artCommission;

    @NotNull(message = "景区不能为空")
    private Integer scenicId;

    private String scenicName;

    private BigDecimal longitude;

    private BigDecimal latitude;

    /** banner图分类 */
    @NotBlank(message = "详情图片不能为空")
    private String detailsImg;

    /** banner图分类 */
    @NotBlank(message = "状态不能为空")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
